package com.example.management.common.service

import com.example.management.oa.domain.NotifyRecordDO

interface NotifyRecordService {
    abstract operator fun get(id: Long?): NotifyRecordDO

    abstract fun list(map: Map<String, Any>): List<NotifyRecordDO>

    abstract fun count(map: Map<String, Any>): Int

    abstract fun save(notifyRecord: NotifyRecordDO): Int

    abstract fun update(notifyRecord: NotifyRecordDO): Int

    abstract fun remove(id: Long?): Int

    abstract fun batchRemove(ids: Array<Long>): Int

    /**
     * 更改阅读状态
     * @return
     */
    abstract fun changeRead(notifyRecord: NotifyRecordDO): Int
}
